package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学籍对象 t_edu_record
 * 
 * @author ruoyi
 * @date 2021-03-02
 */
public class TEduRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /**  */
    @Excel(name = "")
    private Long userId;

    /** 学号 */
    @Excel(name = "学号")
    private String xhNo;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String address;

    /** 学制 */
    @Excel(name = "学制")
    private Long eduYear;

    /** 所学专业 */
    @Excel(name = "所学专业")
    private String major;

    /** 所在班级 */
    @Excel(name = "所在班级")
    private String className;

    /** 入学时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入学时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inEduTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setXhNo(String xhNo) 
    {
        this.xhNo = xhNo;
    }

    public String getXhNo() 
    {
        return xhNo;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setEduYear(Long eduYear) 
    {
        this.eduYear = eduYear;
    }

    public Long getEduYear() 
    {
        return eduYear;
    }
    public void setMajor(String major) 
    {
        this.major = major;
    }

    public String getMajor() 
    {
        return major;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setInEduTime(Date inEduTime) 
    {
        this.inEduTime = inEduTime;
    }

    public Date getInEduTime() 
    {
        return inEduTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("xhNo", getXhNo())
            .append("age", getAge())
            .append("sex", getSex())
            .append("address", getAddress())
            .append("eduYear", getEduYear())
            .append("major", getMajor())
            .append("className", getClassName())
            .append("inEduTime", getInEduTime())
            .toString();
    }
}
